#import <UIKit/UIKit.h>
#import "Constant.h"
@interface ZcoModelCMD<T> : NSObject

@property (nonatomic, strong) NSString * cmd;
@property (nonatomic, strong) NSString * type;
@property (nonatomic, strong) T data;
// "2022-02-21T03:09:52.871Z",
@property (nonatomic, strong) NSString *createdAt;
@property (nonatomic, assign) BOOL askForPermission;
@property (nonatomic, assign) NSInteger cmdId;
@property (nonatomic, strong) CmdStatus status;
@property (nonatomic, strong) NSString *reason;

-(instancetype)initWithDictionary:(NSDictionary *)dictionary;

-(NSDictionary *)toDictionary;

/// 生成取消扫码的指令
+ (ZcoModelCMD *)createCancelScanCMD;
@end
